<?php
/**
 * @author Digvijay
 *
 */
class Response extends CI_Model implements JsonSerializable {
	public $data;
	public $error;
	public $errorMessage;

    function __construct() {
        $this->error = false;
    }

    public function setData($data) {
		$this->data = $data;
	}
	public function getData() {
		return $this->data;
	}
	public function setError($error) {
		$this->error = $error;
	}
	public function getError() {
		return $this->error;
	}
	public function setErrorMessage($errorMessage) {
		$this->errorMessage = $errorMessage;
	}
	public function getErrorMessage() {
		return $this->errorMessage;
	}
    public function jsonSerialize() {
        return (object)get_object_vars($this);
    }
}
?>